package com.gen.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zzx.dao.IPayHistoryDao;
import com.zzx.entity.PayHistory;

@Service
public class PayHistoryImpl implements IPayHistoryService{
	@Autowired
	private IPayHistoryDao payHistoryDao;
	
	@Override
	public int insertPayHistory(PayHistory payHistory) {
		return payHistoryDao.insertPayHistory(payHistory);
	}

	@Override
	public List<PayHistory> selectPayHistoryByPage(Integer startIndex, Integer pageSize) {
		return payHistoryDao.selectPayHistoryByPage(startIndex, pageSize);
	}

	@Override
	public PayHistory selectPayHistoryByOid(Long oid) {
		return payHistoryDao.selectPayHistoryByOid(oid);
	}

	@Override
	public List<PayHistory> selectPayHistoryByUid(Integer uid) {
		return payHistoryDao.selectPayHistoryByUid(uid);
	}

}
